/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.user.comment.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.user.comment.model.Coupon;
import com.yami.shop.user.comment.model.UserBalanceCoupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author YXF
 * @date 2020-09-08 10:42:39
 */
public interface UserBalanceCouponMapper extends BaseMapper<UserBalanceCoupon> {

    void removeByBalaceIdAndCouponId(@Param("balanceId") Long balanceId, @Param("couponIdList") Set<Long> couponIdList);

    void updateBatchByCoupons(@Param("balanceId") Long balanceId, @Param("couponList") List<Coupon> couponList);

    void removeByBalanceId(@Param("balanceId") Long balanceId);
}
